<%@ include file="/includes/includes.jsp" %>
<%@ page language="Java" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<div class="block-frame">
    <div class="top">
        <div>
            <div></div>
        </div>
    </div>
    <div class="middle">
        <div id="sidetree" class="block-body">
            <div class="block-header">
                <div id="sidetreecontrol">
                    <spring:message code="menu"/>
                </div>
            </div>
            <div class="block-content-p1">
                <ul class="treeview" id="tree">
                    <%--<c:forEach var="module" items="${allModules}" varStatus="moduleindex">--%>
                    <%--<c:url value="/modules/index.do" var="url">--%>
                    <%--<c:param name="module" value="${module.code}"/>--%>
                    <%--</c:url>--%>
                    <%--<li class="${module.code eq currentView.module ? 'selected': ''}">--%>
                    <security:authorize access="permitAll">
                        <li class="">
                            <a href="/main.do">Главная</a>
                        </li>
                    </security:authorize>
                    <security:authorize access="permitAll">
                        <li class="">
                            <a href="/docs.do">Учет документов</a>
                        </li>
                    </security:authorize>
                    <security:authorize access="permitAll">
                        <li class="">
                            <a href="/search.do">Поиск</a>
                        </li>
                    </security:authorize>
                    <security:authorize access="permitAll">
                        <li class="">
                            <a href="/upload.do">Загрузка данных</a>
                        </li>
                    </security:authorize>
                    <security:authorize access="hasAnyRole('ROLE_ADMIN', 'ACL_ADMIN')">
                        <li class="">
                            <a href="/admin.do">Администрирование</a>
                        </li>
                    </security:authorize>
                    <security:authorize access="hasRole('ROLE_USER')">
                        <li class="last">
                            <a href="/personal.do">Личный кабинет</a>
                        </li>
                    </security:authorize>
                    <%--</c:forEach>--%>
                </ul>
            </div>
        </div>
    </div>
    <div class="bottom">
        <div>
            <div></div>
        </div>
    </div>

</div>

